-- GENERATED SPELL FOR [Venture Co. Tinkerer] --


function spell0_677(pUnit, Event) --@Compact Harvest Reaper,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(7979,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_677', 1, 1)
end

function spell1_677(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_677', 3000, 1)
end

function spell2_677(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_677', 0, 1)
end

function Sorts_677(pUnit, Event)
local choix_sorts_677 = math.random(0, 2)
if choix_sorts_677 == 0 then
pUnit:RegisterEvent('spell0_677', 1, 1)
end
if choix_sorts_677 == 1 then
pUnit:RegisterEvent('spell1_677', 1, 1)
end
if choix_sorts_677 == 2 then
pUnit:RegisterEvent('spell2_677', 1, 1)
end
end

function mob677_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_677', math.random(1500, 3000), 1)
end

function mob677_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob677_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob677_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(677, 1, 'mob677_Action')
RegisterUnitEvent(677, 2, 'mob677_Leave')
RegisterUnitEvent(677, 3, 'mob677_Kill')
RegisterUnitEvent(677, 4, 'mob677_Die')
